package com.logansoft.zhxypkoa.domain.sys;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.rest.core.config.Projection;

@Projection(name = "OrganizationWithChildrenCount", types = Organization.class)
public interface OrganizationWithChildrenCount {
	String getId();
	String getName();
	@Value("#{target.getChildren().size()}")
	int getChildrenCount();
}
